<?php
class Fender_Frame_Request extends Fender_Base_Entity implements ArrayAccess
{
	protected $_request;

	protected $_file;

	protected $_server;

	protected $_session;

	protected $_cookie;

	public function construct()
	{
		$this->_request = $_REQUEST;

		$this->_file = $_FILES;

		$this->_server = $_SERVER;

		$this->_session = $_SESSION;

		$this->_cookie = $_COOKIE;
	}

	/**
	 * ArrayAccess 接口实现
	 */
	public function offsetExists($offset)
	{
		return isset($this->{'_' . $offset});
	}

	public function offsetGet($offset)
	{
		if (isset($this->{'_' . $offset})) {
			return $this->{'_' . $offset};
		} else {
			throw new exception('');
		}
	}
	
	public function offsetSet($offset, $value)
	{
	}

	public function offsetUnset($offset)
	{
	}
}
